package com.useeinfo.oa.modules.logger.entity;

import com.alibaba.fastjson.JSONObject;
import com.useeinfo.framework.extend.entity.SuperClassEntity;
import com.useeinfo.oa.modules.logger.enums.LogTypeEnum;

import javax.persistence.*;

/**
 * 操作日志
 */
@Entity
@Table(name = "log_active")
public class ActiveLog extends SuperClassEntity<ActiveLog> {
    /*操作表名称*/
    private String className;
    /*操作表数据*/
    private String classToString;
    /*备注*/
    private String activeRemark;
    /*操作人ip*/
    private String ip;
    /*操作人*/
    private String name;
    /*操作人*/
    private String userId;
    /*操作类型*/
    @Enumerated(value = EnumType.STRING)
    @Column(name = "log_type")
    private LogTypeEnum logTypeEnum;

    @Override
    public JSONObject toJSONObject() {
        return null;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getClassToString() {
        return classToString;
    }

    public void setClassToString(String classToString) {
        this.classToString = classToString;
    }

    public String getActiveRemark() {
        return activeRemark;
    }

    public void setActiveRemark(String activeRemark) {
        this.activeRemark = activeRemark;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public LogTypeEnum getLogTypeEnum() {
        return logTypeEnum;
    }

    public void setLogTypeEnum(LogTypeEnum logTypeEnum) {
        this.logTypeEnum = logTypeEnum;
    }
}
